package com.weilai.service.serviceImpl;

import com.weilai.dao.RepliesDao;
import com.weilai.domain.Replies;
import com.weilai.service.RepliesService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Collections;
import java.util.List;

@Service
public class RepliesImpl implements RepliesService {

    @Autowired
    private RepliesDao repliesDao;

    @Override
    public Replies selectById(int id) {
        return repliesDao.selectById(id);
    }

    @Override
    public List<Replies> selectByUserId(int id) {
        return repliesDao.selectByUserId(id);
    }

    @Override
    public List<Replies> repliesUnderChecking() {
        return repliesDao.repliesUnderChecking();
    }
}
